﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <link href="fjzm-basic.css" rel="stylesheet" />
    <meta name="viewport" content="width=device-width,inital-scale=1.0" />
    <meta name="apple-mobile-web-app-title" content="犯贱志">
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    <script src="jquery-1.8.0.min.js"></script>
    <script>
        function GetQueryString(name) {

            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");

            var r = window.location.search.substr(1).match(reg);

            if (r != null) return unescape(r[2]); return null;

        }
        function render(data) {
            var a = data.indexOf('</header>');
            var b = data.indexOf('<footer');
            var str = data.substring(a + 9, b);

            $('#test2').html(str);
            var str2 = $('#test2 #gototop').html();
            $('#test2').html('');
            $('#gototop').html(str2);

            $('div.ui-article-editor,div.ui-article-tools,div.ui-tabs-nav.ui-tabs-nav-s,#ui-comment-send,div.ui-comment-head,div.ui-line-more.mtb10').remove();

            $('img.lazy').each(function () {
                this.src = $(this).data('src');
            });
        }
        var code = GetQueryString("code");
        function gotopage() {
            $('#gototop').html('');
            jQuery.get("fanjianServlet?code=" + code, function (data) {
                render(data);
            });
        }
        gotopage();

    </script>
    <style>
        #test2 {
            width: 100%;
            display: none;
        }

        .ui-body {
            padding: 0px !important;
        }
    </style>
</head>
<body>
    <div id="test2">
    </div>
    <div class="ui-body" id="gototop">

    </div>
</body>
</html>